//
//  YXLoadingView.h
//  YXImageBrowserDemo
//
//  Created by guo peng huang on 2021/5/18.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface UIView (YXLoading)

- (void)yx_showLoading;

- (void)yx_showLoadingWithProgress:(CGFloat)progress;

- (void)yx_showLoadingWithText:(NSString *)text click:(nullable void(^)(void))click;

- (void)yx_hideLoading;

@end


@interface YXLoadingView : UIView

- (void)show;

- (void)showProgress:(CGFloat)progress;

- (void)showText:(NSString *)text click:(void(^)(void))click;

@end

NS_ASSUME_NONNULL_END
